package com.pocketsweet.model;

import com.avos.avoscloud.AVClassName;
import com.avos.avoscloud.AVObject;

@AVClassName("MLCallRecord")
public class MLCallRecord extends AVObject {
	public static String TIME = "time";//
	public static String SPONSOR = "sponsor";// 发起人
	public static String USER = "user";// 用户
	public static String COST = "cost";// 总花费

	public MLCallRecord() {

	}

	public int getTime() {
		return super.getInt(TIME);
	}

	public void setTime(int value) {
		super.put(TIME, value);
	}

	public double getCost() {
		return super.getDouble(COST);
	}

	public void setCost(double value) {
		super.put(COST, value);
	}

	// 用人户（外键1:1）
	public MLUser getUser() {
		return (MLUser) super.getAVUser(USER);
	}

	public void setUser(MLUser user) {
		super.put(USER, user);
	}

	// 发起人（外键1:1）
	public MLUser getSponsor() {
		return (MLUser) super.getAVUser(SPONSOR);
	}

	public void setSponsor(MLUser user) {
		super.put(SPONSOR, user);
	}
}
